<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Betting extends CI_Controller {
    function __construct(){
        parent::__construct();
        $this->load->model('ad');
        $this->load->model('game');
    }
    public function index(){
        $clicksor_ad = $this->ad->getAdByName('clicksor');
        $bet365_ad = $this->ad->getAdByName('bet365_2');
        $countries = $this->game->getBettingOffer();
        $data['ads'] = array('clicksor'=>$clicksor_ad, 'bet365_2'=>$bet365_ad);
        $data['offer']=$countries;
        $this->load->helper('url');
        $this->load->view('bettingOffer',$data);
    }
}
?>
